package com.ytxg.health_management.util;

import lombok.Data;

@Data
public class MyException extends RuntimeException{

    private int code;

    public MyException(String message){
        super(message);
        this.code= 500;
    }
    public MyException(int code,String message){
        super(message);
        this.code = code;
    }
}
